package com.jwsoft.manager.common.enums;

/**
 * 处理状态表 ：work_handle_status
 */
public enum  EduWorkHandleTypeEnum {
    dcl("0", "待处理"),
    clz("1", "处理中"),
    ycl("2", "已处理"),

    ;

    private String type;
    private String name;

    EduWorkHandleTypeEnum(String type, String name) {
        this.type = type;
        this.name = name;
    }

    public String getType() {
        return this.type;
    }

    public String getName() {
        return this.name;
    }

    public static EduWorkHandleTypeEnum getByType(String type) {

        for (EduWorkHandleTypeEnum typeEnum : values()) {
            if (typeEnum.getType().equals(type)) {
                return typeEnum;
            }
        }
        return null;
    }
}
